package org.huangrui.spark.java.core.rdd.operate.action;

import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaSparkContext;

/**
 * @Author hr
 * @Create 2024-10-18 9:47
 */
public class Spark03_Operate_Action_3_IOLoad {
    public static void main(String[] args) {
        final SparkConf conf = new SparkConf().setMaster("local[*]").setAppName("spark");
        final JavaSparkContext jsc = new JavaSparkContext(conf);

        jsc.textFile("output").collect().forEach((System.out::println));
        jsc.objectFile("output1").collect().forEach((System.out::println));
        jsc.close();
    }
}
